home *** CD-ROM | disk | FTP | other *** search
- package engine.levelData
- {
- import copy.CopyBank;
- import engine.WorldScene;
- import engine.dynamicObjects.*;
-
- public class Level_07 extends LevelData
- {
-
-
- public function Level_07()
- {
- super();
- _goalParameters = new Array();
- }
-
- override public function buildLevel() : *
- {
- var i:* = undefined;
- var tablet:* = undefined;
- var gTabs:Number = NaN;
- var spacing:Number = NaN;
- var fuelIcon:* = undefined;
- var goalObj:Object = null;
- var missionObj:Object = null;
- var indian:* = undefined;
- super.buildLevel();
- gTabs = 20;
- spacing = 150;
- for(i = 0; i < gTabs; i++)
- {
- tablet = new TabletPiece();
- tablet.x = 400 + i * spacing;
- tablet.y = 450 + Math.sin(i * 0.2) * 350;
- WorldScene.Instance.GameplayObjects.push(tablet);
- }
- for(i = 0; i < gTabs / 1.8; i++)
- {
- indian = new Indian();
- indian.x = 400 + i * (spacing * 1.8);
- indian.y = 710;
- indian.LobMode = true;
- WorldScene.Instance.GameplayObjects.push(indian);
- WorldScene.Instance.Indians.push(indian);
- }
- fuelIcon = new FuelIcon();
- fuelIcon.x = 4000;
- fuelIcon.y = 120;
- WorldScene.Instance.GameplayObjects.push(fuelIcon);
- fuelIcon = new FuelIcon();
- fuelIcon.x = 5000;
- fuelIcon.y = 100;
- WorldScene.Instance.GameplayObjects.push(fuelIcon);
- _missionDescription = CopyBank.Instance.MissionDesc_Tablets;
- goalObj = {
- "Type":"Tablet",
- "Count":gTabs
- };
- _goalParameters.push(goalObj);
- missionObj = {
- "Description":_missionDescription,
- "BoundsX":_missionBoundsX,
- "BoundsHint":_missionBoundsHint,
- "GoalParamaters":_goalParameters,
- "PrimaryGoalType":"Tablets",
- "StartLoc":{
- "x":50,
- "y":600
- }
- };
- WorldScene.Instance.setMissionDetails(missionObj);
- }
- }
- }
-